﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Media;
using System.Text;

namespace 单元测试_使用Mock
{
    internal class SystemEnvironment : IEnvironment
    {
        public DateTime Now
        {
            get { return DateTime.Now; }
        }

        public void PlaySound()
        {
            SoundPlayer player = new SoundPlayer(@"C:\Windows\Media\Heritage\Windows Ding.wav");
            player.PlayLooping(); 
        }
}
}